
<%@ page import="org.tailor.Comment"%>
<html>
<head>

<meta name="layout" content="mainlayout" />
<g:set var="entityName"
	value="${message(code: 'comment.label', default: 'Comment')}" />
<title><g:message code="default.show.label" args="[entityName]" />
</title>
</head>
<body>
	<div class="col_middel">

		<div class="body">
			<h1>
				<g:message code="default.show.label" args="[entityName]" />
			</h1>
			<g:if test="${flash.message}">
				<div class="message">
					${flash.message}
				</div>
			</g:if>
			<div class="show">
				<table>
					<tbody>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.id.label" default="Id" />
							</td>

							<td valign="top" class="value">
								${fieldValue(bean: commentInstance, field: "id")}<br/><br/>
							</td>

						</tr>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.commentID.label" default="Comment ID" />
							</td>

							<td valign="top" class="value">
								${fieldValue(bean: commentInstance, field: "commentID")}<br/><br/>
							</td>

						</tr>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.commentDescription.label"
									default="Comment Description" />
							</td>

							<td valign="top" class="value">
								${fieldValue(bean: commentInstance, field: "commentDescription")}<br/><br/>
							</td>

						</tr>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.authorEmail.label" default="Author Email" /><br/><br/>
							</td>

							<td valign="top" class="value">
								${fieldValue(bean: commentInstance, field: "authorEmail")}
							</td>

						</tr>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.authorUrl.label" default="Author Url" /><br/><br/>
							</td>

							<td valign="top" class="value">
								${fieldValue(bean: commentInstance, field: "authorUrl")}
							</td>

						</tr>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.client.label" default="Client" /><br/><br/>
							</td>

							<td valign="top" class="value">
								${fieldValue(bean: commentInstance.client, field: "firstName")}
							</td>

						</tr>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.commentApproved.label" default="Comment Approved" />
							</td>

							<td valign="top" class="value"><g:formatBoolean
									boolean="${commentInstance?.commentApproved}" /><br/><br/>
							</td>

						</tr>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.commentDate.label" default="Comment Date" />
							</td>

							<td valign="top" class="value"><g:formatDate
									date="${commentInstance?.commentDate}" /><br/><br/>
							</td>

						</tr>

						<tr class="prop">
							<td valign="top" class="name"><g:message
									code="comment.region.label" default="Region" />
							</td>

							<td valign="top" class="value">
								${fieldValue(bean: commentInstance.region, field: "regionName")}<br/><br/>
							</td>

						</tr>

					</tbody>
				</table>
			</div>
			<div class="buttons">
				<g:form>
					<g:hiddenField name="id" value="${commentInstance?.id}" />
					<span class="button"><g:actionSubmit class="edit"
							action="edit"
							value="${message(code: 'default.button.edit.label', default: 'Edit')}" />
					</span>
					<span class="button"><g:actionSubmit class="delete"
							action="delete"
							value="${message(code: 'default.button.delete.label', default: 'Delete')}"
							onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
					</span>
				</g:form>
			</div>
		</div>
	</div>
</body>
</html>
